Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODLink


GetUpdateID

The GetUpdateID method returns the update ID that uniquely identifies the current generation or version of the link source content.

ODUpdateID GetUpdateID ();
return value
The current update ID of the link source content.
DISCUSSION
If your part contains a destination of this link, you can call this method to determine the current version of the content of the link-source object. You can compare the returned update ID with a previously saved ID to establish whether the source content has been modified since you last read it. There is no implicit ordering of update ID values: they offer tests for equality only, with no indication of the time or nature of any link changes.

You can arrange for your part to receive automatic notification of content updates by calling the RegisterDependent method.

EXCEPTIONS
kODErrBrokenLink
Internal error; the link-source object disconnected from its destinations.
SEE ALSO
The ODUpdateID type (page 917).
The ODLink::RegisterDependent method (page 355).
The ODLinkSource::ContentUpdated method (page 378).
"Updating a Link at the Destination" on page 384 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help